<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<%@ taglib uri="/WEB-INF/tld/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/tld/struts-logic.tld" prefix="logic"%>
<html>
<head>
<title>SECCD - Cita</title>

<%
	String vCampo 		= (String)request.getAttribute("optCampo");
%>
<script type="text/javascript" src="<%= request.getContextPath() %>/js/seccd.js"></script>
<SCRIPT type="text/javascript">
function cargar(pag){

}
function cargaEditaCita(codigo_empresa){
	document.form.action="cargaEditaCita.do?method=cargaEditaCita";
	document.form.submit();
}
function cargaInsertaCita(){
	document.form.action="cargaInsertaCita.do?method=cargaInsertaCita";
	document.form.submit();
}
</SCRIPT>
</head>
<body topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"
	onLoad="redimensionar()">
	<c:set var="temporal" value="${requestScope.longuitud_busqueda}" />
	<form name="form" method="post" action="">
		<table class="contenedor">
			<tr>
				<td colspan="2" height="26" class="texto_celeste_titulo"
					background="<%=request.getContextPath()%>/images/fondo-imp-email.jpg"
					style="background-repeat: no-repeat; background-position: right">
					Asignar Recursos a Citas</td>
			</tr>

			<tr>
				<td><img src="<%=request.getContextPath()%>/images/pxtrans.gif"
					width="770" height="10" alt=""></td>
				<td><img src="<%=request.getContextPath()%>/images/pxtrans.gif"
					width="20" height="1" alt=""></td>
			</tr>
			<tr>
				<td align="left">
					<table class="contenedor">
						<tr>
							<td><img
								src="<%=request.getContextPath()%>/images/pxtrans.gif"
								width="78" height="1" alt=""></td>
							<td><img
								src="<%=request.getContextPath()%>/images/pxtrans.gif"
								width="60" height="1" alt=""></td>
							<td><img
								src="<%=request.getContextPath()%>/images/pxtrans.gif"
								width="10" height="1" alt=""></td>
							<td><img
								src="<%=request.getContextPath()%>/images/pxtrans.gif"
								width="150" height="1" alt=""></td>
							<td><img
								src="<%=request.getContextPath()%>/images/pxtrans.gif"
								width="10" height="1" alt=""></td>
							<td><img
								src="<%=request.getContextPath()%>/images/pxtrans.gif"
								width="70" height="1" alt=""></td>
							<td><img
								src="<%=request.getContextPath()%>/images/pxtrans.gif"
								width="10" height="1" alt=""></td>
							<td><img
								src="<%=request.getContextPath()%>/images/pxtrans.gif"
								width="300" height="1" alt=""></td>
							<td><img
								src="<%=request.getContextPath()%>/images/pxtrans.gif"
								width="10" height="1" alt=""></td>
							<td><img
								src="<%=request.getContextPath()%>/images/pxtrans.gif"
								width="72" height="1" alt=""></td>
						</tr>
						<tr>
							<td><img
								src="<%=request.getContextPath()%>/images/pxtrans.gif" width="1"
								height="1" alt=""></td>
							<td class="texto_gris">Buscar por :</td>
							<td><img
								src="<%=request.getContextPath()%>/images/pxtrans.gif" width="1"
								height="1" alt=""></td>
							<td><c:set var="campo" value="${requestScope.campo}" /> <select
								name="optCampo" style="width: 150">
									<option value="short_name"
										<%=vCampo.equals("short_name")?"selected":""%>>
										<bean:message key="formulario.cita" />
									</option>
									<option value="direccion_completa"
										<%=vCampo.equals("direccion_completa")?"selected":""%>>
										<bean:message key="formulario.nombre.completo" />
									</option>
									<option value="c.nombre"
										<%=vCampo.equals("c.nombre")?"selected":""%>>
										<bean:message key="formulario.historia.clinica" />
									</option>
									<option value="c.nombre"
										<%=vCampo.equals("c.nombre")?"selected":""%>>
										<bean:message key="formulario.especialidad" />
									</option>
									<option value="c.nombre"
										<%=vCampo.equals("c.nombre")?"selected":""%>>
										<bean:message key="formulario.fecha" />
									</option>
									<option value="c.nombre"
										<%=vCampo.equals("c.nombre")?"selected":""%>>
										<bean:message key="formulario.operador" />
									</option>
									<option value="todos" <%=vCampo.equals("todos")?"selected":""%>>
										<bean:message key="formulario.todos" />
									</option>
							</select></td>
							<td><img
								src="<%=request.getContextPath()%>/images/pxtrans.gif" width="1"
								height="1" alt=""></td>
							<td class="texto_gris">Con el Texto :</td>
							<td><img
								src="<%=request.getContextPath()%>/images/pxtrans.gif" width="1"
								height="1" alt=""></td>
							<td><input type="text" name="txtCriterio" style="width: 300"
								value='<c:out value="${requestScope.criterio}"/>'></td>
							<td><img
								src="<%=request.getContextPath()%>/images/pxtrans.gif" width="1"
								height="1" alt=""></td>
							<td><a href="javascript:buscaEmpresa();"
								class="boton_naranja" style="height: 18">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<bean:message
										key="boton.buscar" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							</a></td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td><img src="<%=request.getContextPath()%>/images/pxtrans.gif"
					width="1" height="10" alt=""></td>
			</tr>
			<tr>
				<td class="texto_gris">Total de Registros : <c:out
						value="${sessionScope.longuitud_empresa}" /></td>
			</tr>
			<tr>
				<td><img src="<%=request.getContextPath()%>/images/pxtrans.gif"
					width="1" height="3" alt=""></td>
			</tr>
			<tr>
				<td>
					<table class="contenedor">
						<tr>
							<td><img
								src="<%=request.getContextPath()%>/images/pxtrans.gif" width="1"
								height="1" alt=""></td>
							<td><img
								src="<%=request.getContextPath()%>/images/pxtrans.gif"
								width="80" height="1" alt=""></td>
							<td><img
								src="<%=request.getContextPath()%>/images/pxtrans.gif" width="1"
								height="1" alt=""></td>
							<td><img
								src="<%=request.getContextPath()%>/images/pxtrans.gif"
								width="170" height="1" alt=""></td>
							<td><img
								src="<%=request.getContextPath()%>/images/pxtrans.gif" width="1"
								height="1" alt=""></td>
							<td><img
								src="<%=request.getContextPath()%>/images/pxtrans.gif"
								width="120" height="1" alt=""></td>
							<td><img
								src="<%=request.getContextPath()%>/images/pxtrans.gif" width="1"
								height="1" alt=""></td>
							<td><img
								src="<%=request.getContextPath()%>/images/pxtrans.gif"
								width="100" height="1" alt=""></td>
							<td><img
								src="<%=request.getContextPath()%>/images/pxtrans.gif" width="1"
								height="1" alt=""></td>
							<td><img
								src="<%=request.getContextPath()%>/images/pxtrans.gif"
								width="55" height="1" alt=""></td>
							<td><img
								src="<%=request.getContextPath()%>/images/pxtrans.gif" width="1"
								height="1" alt=""></td>
							<td><img
								src="<%=request.getContextPath()%>/images/pxtrans.gif"
								width="55" height="1" alt=""></td>
							<td><img
								src="<%=request.getContextPath()%>/images/pxtrans.gif" width="1"
								height="1" alt=""></td>
							<td><img
								src="<%=request.getContextPath()%>/images/pxtrans.gif"
								width="150" height="1" alt=""></td>
						</tr>
						<tr class="fondo_celeste">
							<td><img
								src="<%=request.getContextPath()%>/images/pxtrans.gif" width="1"
								height="1" height="20" alt=""></td>
							<td class="texto_blanco"><bean:message key="formulario.cita" /></td>
							<td><img
								src="<%=request.getContextPath()%>/images/pxtrans.gif" width="1"
								height="1" alt=""></td>
							<td class="texto_blanco"><bean:message
									key="formulario.nombre.completo" /></td>
							<td><img
								src="<%=request.getContextPath()%>/images/pxtrans.gif" width="1"
								height="1" alt=""></td>
							<td class="texto_blanco" align="left"><bean:message
									key="formulario.historia.clinica" /></td>
							<td><img
								src="<%=request.getContextPath()%>/images/pxtrans.gif" width="1"
								height="20" alt=""></td>
							<td class="texto_blanco" align="center"><bean:message
									key="formulario.especialidad" /></td>
							<td><img
								src="<%=request.getContextPath()%>/images/pxtrans.gif" width="1"
								height="20" alt=""></td>
							<td class="texto_blanco" align="center"><bean:message
									key="formulario.fecha" /></td>
							<td><img
								src="<%=request.getContextPath()%>/images/pxtrans.gif" width="1"
								height="1" alt=""></td>
							<td class="texto_blanco" align="center"><bean:message
									key="formulario.hora" /></td>
							<td><img
								src="<%=request.getContextPath()%>/images/pxtrans.gif" width="1"
								height="20" alt=""></td>
							<td class="texto_blanco" align="left"><bean:message
									key="formulario.operador" /></td>
							<td><img
								src="<%=request.getContextPath()%>/images/pxtrans.gif" width="1"
								height="1" alt=""></td>
							<td class="texto_blanco" align="center"><bean:message
									key="formulario.editar" /></td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td>
					<div id="Layer1"
						style="width: 770px; height: 167px; z-index: 2; overflow: auto;"
						class="scroll">
						<table class="contenedor">
							<tr>
								<td><img
									src="<%=request.getContextPath()%>/images/pxtrans.gif"
									width="1" height="1" alt=""></td>
								<td><img
									src="<%=request.getContextPath()%>/images/pxtrans.gif"
									width="80" height="1" alt=""></td>
								<td><img
									src="<%=request.getContextPath()%>/images/pxtrans.gif"
									width="1" height="1" alt=""></td>
								<td><img
									src="<%=request.getContextPath()%>/images/pxtrans.gif"
									width="170" height="1" alt=""></td>
								<td><img
									src="<%=request.getContextPath()%>/images/pxtrans.gif"
									width="1" height="1" alt=""></td>
								<td><img
									src="<%=request.getContextPath()%>/images/pxtrans.gif"
									width="120" height="1" alt=""></td>
								<td><img
									src="<%=request.getContextPath()%>/images/pxtrans.gif"
									width="1" height="1" alt=""></td>
								<td><img
									src="<%=request.getContextPath()%>/images/pxtrans.gif"
									width="100" height="1" alt=""></td>
								<td><img
									src="<%=request.getContextPath()%>/images/pxtrans.gif"
									width="1" height="1" alt=""></td>
								<td><img
									src="<%=request.getContextPath()%>/images/pxtrans.gif"
									width="55" height="1" alt=""></td>
								<td><img
									src="<%=request.getContextPath()%>/images/pxtrans.gif"
									width="1" height="1" alt=""></td>
								<td><img
									src="<%=request.getContextPath()%>/images/pxtrans.gif"
									width="55" height="1" alt=""></td>
								<td><img
									src="<%=request.getContextPath()%>/images/pxtrans.gif"
									width="1" height="1" alt=""></td>
								<td><img
									src="<%=request.getContextPath()%>/images/pxtrans.gif"
									width="150" height="1" alt=""></td>
							</tr>
							<tr class="fondo_naranja_claro">
								<td><img
									src="<%=request.getContextPath()%>/images/pxtrans.gif"
									width="1" height="1" alt=""></td>
								<td class="texto_gris">SD2012-00001</td>
								<td><img
									src="<%=request.getContextPath()%>/images/pxtrans.gif"
									width="1" height="1" alt=""></td>
								<td class="texto_gris">Escobar Del Solar, Gisella</td>
								<td><img
									src="<%=request.getContextPath()%>/images/pxtrans.gif"
									width="1" height="1" alt=""></td>
								<td class="texto_gris">HC2012SD0089</td>
								<td><img
									src="<%=request.getContextPath()%>/images/pxtrans.gif"
									width="1" height="22" alt=""></td>
								<td class="texto_gris">Cirugia</td>
								<td><img
									src="<%=request.getContextPath()%>/images/pxtrans.gif"
									width="1" height="22" alt=""></td>
								<td class="texto_gris">2012-08-15</td>
								<td><img
									src="<%=request.getContextPath()%>/images/pxtrans.gif"
									width="1" height="22" alt=""></td>
								<td class="texto_gris">09:00 AM</td>
								<td><img
									src="<%=request.getContextPath()%>/images/pxtrans.gif"
									width="1" height="1" alt=""></td>
								<td class="texto_gris">Lopez Ayala, Paulo</td>
								<td><img
									src="<%=request.getContextPath()%>/images/pxtrans.gif"
									width="1" height="1" alt=""></td>
								<td align="center"><a href="javascript:cargaEditaCita()"
									class="texto_gris"> <IMG
										src="<%=request.getContextPath()%>/images/images3.jpg"
										border="0" width="12" height="12" alt="Editar">
								</a></td>
							</tr>
							<tr>
								<td><img
									src="<%=request.getContextPath()%>/images/pxtrans.gif"
									width="1" height="1" alt=""></td>
								<td class="texto_gris">SD2012-00001</td>
								<td><img
									src="<%=request.getContextPath()%>/images/pxtrans.gif"
									width="1" height="1" alt=""></td>
								<td class="texto_gris">Escobar Del Solar, Gisella</td>
								<td><img
									src="<%=request.getContextPath()%>/images/pxtrans.gif"
									width="1" height="1" alt=""></td>
								<td class="texto_gris">HC2012SD0089</td>
								<td><img
									src="<%=request.getContextPath()%>/images/pxtrans.gif"
									width="1" height="22" alt=""></td>
								<td class="texto_gris">Cirugia</td>
								<td><img
									src="<%=request.getContextPath()%>/images/pxtrans.gif"
									width="1" height="22" alt=""></td>
								<td class="texto_gris">2012-08-15</td>
								<td><img
									src="<%=request.getContextPath()%>/images/pxtrans.gif"
									width="1" height="22" alt=""></td>
								<td class="texto_gris">09:00 AM</td>
								<td><img
									src="<%=request.getContextPath()%>/images/pxtrans.gif"
									width="1" height="1" alt=""></td>
								<td class="texto_gris">Lopez Ayala, Paulo</td>
								<td><img
									src="<%=request.getContextPath()%>/images/pxtrans.gif"
									width="1" height="1" alt=""></td>
								<td align="center"><a href="javascript:cargaEditaCita()"
									class="texto_gris"> <IMG
										src="<%=request.getContextPath()%>/images/images3.jpg"
										border="0" width="12" height="12" alt="Editar">
								</a></td>
							</tr>
							<c:choose>
								<c:when test="${temporal==0}">
									<tr>
										<td><img
											src="<%=request.getContextPath()%>/images/pxtrans.gif"
											width="1" height="10" alt=""></td>
									</tr>
									<tr>
										<td class="texto_gris13" align="center" colspan="10"><bean:message
												key="busqueda.nulo.distribuidora" /></td>
									</tr>
									<tr>
										<td><img
											src="<%=request.getContextPath()%>/images/pxtrans.gif"
											width="1" height="10" alt=""></td>
									</tr>
								</c:when>
							</c:choose>
						</table>
					</div>
				</td>
			</tr>
			<tr>
				<td><img src="<%=request.getContextPath()%>/images/pxtrans.gif"
					width="1" height="10" alt=""></td>
			</tr>
			<tr>
				<td><img src="<%=request.getContextPath()%>/images/pxtrans.gif"
					width="1" height="10" alt=""></td>
			</tr>
			<tr>
				<td align="right"><a href="javascript:cargaInsertaCita()"
					class="boton_naranja" style="height: 18">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<bean:message
							key="boton.agregar" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				</a></td>
			</tr>
			<tr>
				<td><img src="<%=request.getContextPath()%>/images/pxtrans.gif"
					width="1" height="11" alt=""></td>
			</tr>
			<TR>
				<TD><iframe name="nm_blanco" frameborder="0" width="1" height="1" id="blanco" scrolling="no">&nbsp;</iframe></TD>
			</TR>
		</table>
		<input type="hidden" name="method"> <input type="hidden"
			name="operacion" value="listado">
	</form>
</body>
</html>